<?php

namespace api\article\controller;

class AdminCategoryController extends \Aaa\article\controller\AdminCategoryController {

    protected function init() {
        $this->baseField = [
            [
                'field' => 'id',
                'name' => 'ID',
            ],
            [
                'field' => 'name',
                'name' => '分类名称',
            ],
            [
                'field' => 'remark',
                'name' => '备注',
            ],
            [
                'field' => 'list_order',
                'name' => '排序',
            ],
        ];
    }

    protected function beforeIndex() {
        $this->actionField = ['id', 'name', 'remark', 'list_order',];
    }

    protected function beforeAdd() {
        $this->actionField = ['name', 'remark', 'list_order',];
    }

    protected function beforeEdit() {
        $this->beforeAdd();
    }


}